﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:rp="clr-namespace:S7.UserControls"
	mc:Ignorable="d"
	x:Class="S7.TableControl"
	x:Name="UserControl"
	d:DesignWidth="431" d:DesignHeight="431" Margin="48,0">
	<UserControl.Resources>
		<Storyboard x:Key="sbTableGrow">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.544"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.544"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbTableNumber" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="sbTableGrowRev">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbTableNumber" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.6"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="grid">
			<BeginStoryboard x:Name="sbTableGrow_BeginStoryboard" Storyboard="{StaticResource sbTableGrow}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="grid">
			<BeginStoryboard x:Name="sbTableGrowRev_BeginStoryboard" Storyboard="{StaticResource sbTableGrowRev}"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot" Width="415" Height="415">
		<rp:RadialPanel x:Name="rpChairs" Margin="17" Panel.ZIndex="1"/>
		<Grid x:Name="grid" Width="250" Height="250" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="100">
			<Grid.ContextMenu>
				<ContextMenu>
					<MenuItem Header="Sign all customers out" Foreground="Black" Click="SignCustomersOut_Click"/>
					<MenuItem Header="Show all orders" Foreground="Black" Click="ShowAllOrders_Click"/>
					<MenuItem Header="Refresh" Foreground="Black" Click="Refresh_Click"/>
					<MenuItem Header="Delete" Foreground="Black" Click="Delete_Click"/>
				</ContextMenu>
			</Grid.ContextMenu>
			<Grid.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Grid.RenderTransform>
			<Ellipse x:Name="eTable" Fill="{DynamicResource bOffline}">
				<Ellipse.Effect>
					<DropShadowEffect Direction="598" BlurRadius="24" ShadowDepth="1"/>
				</Ellipse.Effect>
			</Ellipse>
			<TextBlock x:Name="tbTableNumber" HorizontalAlignment="Center" Text="8" FontSize="200" VerticalAlignment="Center" Opacity="0.6"/>
			<StackPanel x:Name="stackPanel" Orientation="Vertical" VerticalAlignment="Center" Opacity="0">
				<TextBlock x:Name="tbInfo1" TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="26.667" VerticalAlignment="Center" FontWeight="Bold"/>
				<TextBlock x:Name="tbInfo2" TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="26.667" VerticalAlignment="Center" FontWeight="Bold"/>
				<TextBlock x:Name="tbInfo3" TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="26.667" VerticalAlignment="Center" FontWeight="Bold"/>
				<TextBlock x:Name="tbInfo4" TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="26.667" VerticalAlignment="Center" FontWeight="Bold"/>
			</StackPanel>
			<Ellipse Opacity="0.5">
				<Ellipse.Fill>
					<LinearGradientBrush EndPoint="0.151,0.84" StartPoint="0.843,0.147">
						<GradientStop Color="White" Offset="0"/>
						<GradientStop Offset="0.746"/>
					</LinearGradientBrush>
				</Ellipse.Fill>
			</Ellipse>
			<Ellipse Opacity="0.3">
				<Ellipse.Fill>
					<LinearGradientBrush EndPoint="0.151,0.84" StartPoint="0.843,0.147">
						<GradientStop Offset="0.237"/>
						<GradientStop Offset="1" Color="Black"/>
					</LinearGradientBrush>
				</Ellipse.Fill>
			</Ellipse>
		</Grid>
	</Grid>
</UserControl>